package com.fand.common.service;

import org.springframework.cache.annotation.CacheEvict;

import com.fand.acceptControl.service.AcceptControlService;
import com.fand.configuration.service.ConfigurationService;
import com.fand.department.service.DepartmentService;
import com.fand.site.service.SiteService;
import com.fand.user.service.UserService;

/**
 * 公共服务
 * 
 * @author haitao.yao
 * 
 */
public class DefaultCommonService implements CommonService {
	private AcceptControlService acceptControlService;

	private ConfigurationService configurationService;

	private DepartmentService departmentService;

	private SiteService siteService;

	private UserService userService;

	@Override
	public AcceptControlService getAcceptControlService() {
		return this.acceptControlService;
	}

	@Override
	public ConfigurationService getConfigurationService() {
		return this.configurationService;
	}

	@Override
	public DepartmentService getDepartmentService() {
		return this.departmentService;
	}

	@Override
	public SiteService getSiteService() {
		return this.siteService;
	}

	@Override
	public UserService getUserService() {
		return this.userService;
	}

	@Override
	@CacheEvict(value = CommonService.CACHE_NAME, allEntries = true)
	public void reload() {
	}

	public void setAcceptControlService(final AcceptControlService acceptControlService) {
		this.acceptControlService = acceptControlService;
	}

	public void setConfigurationService(final ConfigurationService configurationService) {
		this.configurationService = configurationService;
	}

	public void setDepartmentService(final DepartmentService departmentService) {
		this.departmentService = departmentService;
	}

	public void setSiteService(final SiteService siteService) {
		this.siteService = siteService;
	}

	public void setUserService(final UserService userService) {
		this.userService = userService;
	}
}